[@InfoPage nodeId=node.id isMainNodeOnly='true' pageSize='10' status='A';pagedList]
{
  "data": {
    "list": [
    [#list pagedList.content as info]
      {
        "isLiving": false,
        "newsId": "${(info.id)!}",
        "newsImage":"${(info.detail.smallImage)!}",
        "newsKeyword": "${(info.keywords)!}",
        "newsMediaLength": "${(info.detail.videoTime)!}",
        "newsTitle": "${(info.title)!}",
        "newsType":"${(info.newsType)!1}",
        "newsUrl": "${(info.url)!}",
        "pubTime": "${info.publishDate?string('yyyy-MM-dd HH:mm:ss')}"
      }
        [#if info_has_next],[/#if]
    [/#list]
    ],
    [#if page==0]
    "programmeInfo": {
      "playAmount": "",
      "programId": "${(node.id)!}",
      "programImage": "${(node.smallImage)!}",
      "programIntro": "${(node.metaDescription)!}",
      "programTitle": "${(node.name)!}",
      "programTotal": "${(node.customs.totalPeriods)!}",
      "programType": "${(node.customs.nodeTag)!}",
      [@InfoList nodeId=node.id isIncludeChildren='true' sort='publishDate desc' status='A' limit='1';list]
      [#if list?size!=0]
      [#list list as info]
      "programme":{
          "isLiving": false,
          "newsId": "${(info.id)!}",
          "newsImage":"${(info.detail.smallImage)!}",
          "newsKeyword": "${(info.keywords)!}",
          "newsMediaLength": "10",
          "newsTitle": "${(info.title)!}",
          "newsType":"${(info.newsType)!1}",
          "newsUrl": "${(info.url)!}",
          "pubTime": "${info.publishDate?string('yyyy-MM-dd HH:mm:ss')}"
      },
      "updateInfo": "${info.publishDate?string('yyyy-MM-dd')}"
      [/#list]
      [/#if]
      [#if list?size==0]
      "programme":{

      },
      "updateInfo": "",
      [/#if]

      [/@InfoList]
    },
    [/#if]
    "pageAll":${pagedList.totalPages},
    "pageIndex":${page}

  },
 "error": "",
 "rs":200

}
[/@InfoPage]
